﻿<?php
include_once("../../includes/metodos.php");
include_once("action.php");

checkUser();
connectSql();
isAdmin();

if(!empty($_POST['cmd']) && $_POST['cmd']=='insert'){
	insert();	
}
include_once ("../cabecalho.php");
?>
<br>
<div id="conteudo_gloss_new">
		<form action="new.php" method="post">
	<div id="div_sup_gloss_new">
			<label id="label_gloss_edit">Titulo</label>
			<input type="text" name="titulo" />
			<label id="label_gloss_edit">Link</label>
			<input type="text" name="link" />
			<label id="label_gloss_edit">Letra</label>
			<input type="text" name="letra" />
	  <div style="width:100px;float:right;">
			<label id="label_gloss_edit">Vizualiza&ccedil;&atilde;o</label><br>
			<input type="radio" name="status" value="1"/><label id="label_gloss_edit_ativo">Ativo</label><br/>
			<input type="radio" name="status" value="2" checked="checked"/><label id="label_gloss_edit">Inativo</label><br/><br/>
	  </div>
	  <br><br><br><br>
	</div>
	  <div id="div_textarea_gloss_new">
			<textarea name="conteudo"></textarea>
			
			<input type="hidden" name="cmd" value="insert">
			<input id="nova_noticia" type="submit" value="Salvar"/>
	  </div>
		</form> 
</div>